﻿using System.Collections.Generic;

namespace Lihong.Cms.Entities
{
    /// <summary>
    /// 菜单
    /// </summary>
    public class Menu
    {
        /// <summary>
        /// 惟一编号
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 链接
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 顺序
        /// </summary>
        public int Order { get; set; }

        /// <summary>
        /// 是否隐藏
        /// </summary>
        public bool IsHidden { get; set; }

        /// <summary>
        /// 子节点
        /// </summary>
        public List<Menu> Children { get; set; } = new List<Menu>();

        /// <summary>
        /// 父节点
        /// </summary>
        public Menu Parent { get; set; }
    }
}
